package cn.iocoder.yudao.module.member.controller.admin.user.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

/**
 * 会员用户 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class MemberUserBaseVO {

    @Schema(description = "手机号")
    @NotNull(message = "手机号不能为空")
    private String mobile;

    @Schema(description = "状态")
    private Byte status;

    @Schema(description = "用户昵称")
    @NotNull(message = "用户昵称不能为空")
    private String nickname;

    @Schema(description = "头像")
    //@URL(message = "头像必须是 URL 格式")
    private String avatar;

    @Schema(description = "用户身份证号")
    private String idNumber;

    @Schema(description = "第三方id")
    private String openId;

    @Schema(description = "付费类型")
    @NotNull(message = "付费类型不能为空")
    private Integer payType;

    @Schema(description = "用户性别")
    private Byte sex;

    @Schema(description = "所在地编号")
    private Long areaId;

    @Schema(description = "所在地全程")
    private String areaName;

    @Schema(description = "出生日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDateTime birthday;

    @Schema(description = "会员备注")
    private String mark;

    @Schema(description = "会员标签")
    private List<Long> tagIds;

    @Schema(description = "会员等级编号")
    private Long levelId;

    @Schema(description = "用户分组编号")
    private Long groupId;


}
